﻿using System;
using System.Text.Json.Serialization;
using System.Text.Json;
//using Newtonsoft.Json;
namespace ConsoleApp9
{
    internal class Program
    {
        public class MyModel
        {
            public int i { get; set; }

            //[JsonProperty("object")]
            [JsonPropertyName("object")]
            public string ObjectValue { get; set; }
        }
        static void Main(string[] args)
        {
            string json = "{\"i\":200,\"object\":\"ok\"}";

            MyModel model = JsonSerializer.Deserialize<MyModel>(json);



            //MyModel model = JsonConvert.DeserializeObject<MyModel>(json);
            Console.WriteLine("Hello World!");
        }
    }
}
